package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.MaintainItem;
import org.springframework.stereotype.Component;

@Component
public interface MaintainItemMapper {
    int deleteByPrimaryKey(String fid);

    int insert(MaintainItem record);

    int insertSelective(MaintainItem record);

    MaintainItem selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(MaintainItem record);

    int updateByPrimaryKey(MaintainItem record);

    /**
     * 根据名称查询
     * @param map
     * @return
     */
    List<MaintainItem>selectMaintainItemByFnameL2(Map<String, String> map);

    /**
     * 查询编码
     * @return
     */
    String selectFnumber(String companyId);

    List<MaintainItem> selMaintainItem(String companyId);

    List<MaintainItem> selMaintainItemByName(Map<String, String> map);

    int updateMaintainItem(MaintainItem maintainItem);
}